<template>
  <el-main class="content">
    <el-card class="card" shadow="hover">
      <keep-alive>
        <h3>欢迎您： {{username}}</h3>
        <router-view/>
      </keep-alive>
    </el-card>
  </el-main>
</template>

<script>
export default {
  name: 'Content',
  data ()  {
    return{
      username: localStorage.getItem("username")
    }
  }

}
</script>

<style>
  .content {
    background-color: #f1f4f5;
  }
  .card {
    height: 100%;
  }
</style>
